package com.lego.service.impl;

import java.util.List;

import com.lego.bean.OrderDTO;
import com.lego.bean.Orders;
import com.lego.bean.OrdersAndGoodsImgVO;
import com.lego.dao.OrdersDao;
import com.lego.dao.impl.OrdersDaoImpl;
import com.lego.service.OrdersService;

public class OrdersServiceImpl implements OrdersService {
	
	OrdersDao od = new OrdersDaoImpl();
	
	@Override
	public int selectSellerSold(int sellerId) {
		return od.selectSellerSold(sellerId);
	}

	@Override
	public int selectTotalSold(int goodsId) {
		return od.selectTotalSold(goodsId);
	}

	@Override
	public int addOrders(Orders order) {
		return od.addOrders(order);
	}

	@Override
	public int updateStatus(String orderStatus, String orderNumber,String receivingAddress) {
		return od.updateStatus(orderStatus,orderNumber,receivingAddress);
	}

	@Override
	public List<OrderDTO> selectUserOrders(String orderStatus, int userId,int pageNum,int pageSize) {
		return od.selectUserOrders(orderStatus,userId,pageNum,pageSize);
	}

	@Override
	public int selectUserRows(String orderStatus, int userId) {
		return od.selectUserRows(orderStatus,userId);
	}

	@Override
	public List<OrdersAndGoodsImgVO> selectPersonalReview(int userId,int pageNum,int pageSize) {
		return od.selectPersonalReview(userId,pageNum,pageSize);
	}

	@Override
	public int seletPersonalRws(int userId) {
		return od.seletPersonalRws(userId);
	}

	@Override
	public int changeStatusById(String orderStatus, int orderId) {
		return od.changeStatusById(orderStatus,orderId);
	}

	@Override
	public int changeStatusTime(String orderStatus, int orderId) {
		// TODO Auto-generated method stub
		return od.changeStatusTime(orderStatus, orderId);
	}
	@Override
	public OrderDTO selectOrderByONum(String orderNum) {
		// TODO Auto-generated method stub
		return od.selectOrderByONum(orderNum);
	}
	
	@Override
	public int selectTodayOrders() {
		return od.selectTodayOrders();
	}

	@Override
	public double selectTodayAmoun() {
		return od.selectTodayAmount();
	}

	@Override
	public double selectAllAmount() {
		return od.selectAllAmount();
	}

	@Override
	public double[] selectEveryCard() {
		return od.selectEveryCard();
	}

}
